/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/3
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/3       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.bridge;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Client {
    public static void main(String[] args) {
        // 获取折叠式手机 (样式 + 品牌)
        FoldedPhone foldedPhone = new FoldedPhone(new XiaoMi());
        foldedPhone.open();
        foldedPhone.call();
        foldedPhone.close();

        System.out.println("========================");

        FoldedPhone foldedPhone1 = new FoldedPhone(new Vivo());
        foldedPhone1.open();
        foldedPhone1.call();
        foldedPhone1.close();

        System.out.println("========================");
        UpRightPhone foldedPhone2 = new UpRightPhone(new XiaoMi());
        foldedPhone2.open();
        foldedPhone2.call();
        foldedPhone2.close();
    }
}
